    [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV**{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]    
    
<form method='post' action='#ENV{action}' name="alohacart_cart_form" id="alohacart_cart_form" enctype="multipart/form-data">
    #ACTION_FORMULAIRE{#ENV{action}}
     <input type="text" name="url" style="display: none;" value="" />       
    <?php 
    $cart_products = $GLOBALS['alohacart_cart_products'];
    if (isset($cart_products) and !empty($cart_products)) { ?>
    <table width="100%" cellpadding="0" cellspacing="1">
	   <tbody>                            
            <tr>
                <th><:alohacart:photo:></th>
                <th><:alohacart:article:></th>
                <th width="60%"><:alohacart:titre:></th>
	            <th><:alohacart:quantity:></th>
                <th><:alohacart:price_one:></th>                
                <th><:alohacart:price:></th>                                
                <th></th>
            </tr>
    <?php foreach ($cart_products as $product) { ?>
    <tr>
        <td><?php $code = '<a href="'.$product["img_file"].'" rel="gallery"><img src="'.$product["img_file"].'" /></a>';
                  echo filtrer('image_reduire', $code, null, 50); ?>
        </td>
        <td><?php echo $product["article"]; ?></td>
        <td><?php if ($product["link"]) { ?>
                <a target="_blank" href="<?php echo $product["link"]; ?>"><?php echo $product["titre"]; ?></a>
            <?php } else { ?>
                <?php echo $product["titre"]; ?>
            <?php } ?>
        </td>									
        <td>
        <input type="text" name="products[<?php echo $product["id_product"]; ?>][quantity]" value="<?php echo $product["quantity"]; ?>"
               style="width: 70px;"  />
                    <:alohacart:pcs:>
        </td>
        <td><?php echo $product["price_one"]; ?> <:alohacart:local_currency:></td>        
		<td><?php echo $product["price"]; ?> <:alohacart:local_currency:></td>
        <td>
            <center>                
                <a class="delete_link" href="javascript:;" data-id_product="<?php echo $product["id_product"]; ?>" >
                    <:alohacart:delete:>
                </a>                
            </center>
        </td>
    </tr>
    <?php } ?>
    </tbody>
    </table>
    <strong><:alohacart:cart_quantity:>: </strong> #ALOHACART_CART_QUANTITY <:alohacart:pcs:><br />
    <strong><:alohacart:total_price:>: </strong> #ALOHACART_CART_PRICE <:alohacart:local_currency:><br />
    <input type="submit" name="refresh_submit" id="refresh_submit" value="<:alohacart:refresh:>" />
    <input type="submit" name="clear_submit" id="clear_submit" value="<:alohacart:clear_cart:>" />
    <?php } else { ?>
        <:alohacart:cart_is_empty:>
    <?php } ?>
    <input type="hidden" value="" class="delete_product" name="delete_product" />
</form>
<script>
$(document).ready(function() {
    $('#alohacart_cart_form .delete_link').click(function(){        
        $('#alohacart_cart_form input.delete_product').val($(this).attr('data-id_product'));
        $('#alohacart_cart_form #refresh_submit').click();
    });
});
</script>